//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.leador.broadcase;

import com.leador.core.KernelThread;

/**
 * 停止服务的类
 */
public class StopServiceThread extends Thread {
    private KernelThread kernelThread;
    public StopServiceThread(KernelThread kernelThread) {
        this.kernelThread = kernelThread;
    }

    public final void run() {
        synchronized(this) {
            try {
                this.wait(10000L);
            } catch (InterruptedException var3) {
                ;
            }
        }

        if(kernelThread.stopServiceFlag > 0 && kernelThread.getHandler() != null) {
            kernelThread.getHandler().obtainMessage(141).sendToTarget(); //stopService
        }
        kernelThread.stopServiceFlag = 0;
    }
}
